home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / rsu10a.zip / EQUAL.BAT < prev    next >
DOS Batch File  |  1992-12-27  |  569b  |  23 lines

  1. @echo off
  2. equal.com %1 %2
  3. IF ERRORLEVEL 4 goto NO_MEMORY
  4. IF ERRORLEVEL 3 goto FILE_NOT_FOUND
  5. IF ERRORLEVEL 2 goto WRONG_PARAMETERS
  6. IF ERRORLEVEL 1 goto NOT_EQUAL
  7. IF ERRORLEVEL 0 goto EQUAL
  8. :NOT_EQUAL
  9. echo The files %1 and %2 are not equal.
  10. goto FINISH
  11. :WRONG_PARAMETERS
  12. echo Wrong parameters! Usage: EQUAL.BAT <file 1> <file 2>
  13. goto FINISH
  14. :FILE_NOT_FOUND
  15. echo Error: One of the two files could not be found.
  16. goto FINISH
  17. :NO_MEMORY
  18. echo Error: Not enough memory to execute EQUAL.COM.
  19. goto FINISH
  20. :EQUAL
  21. echo The files %1 and %2 are equal.
  22. :FINISH
  23.